package com.newstore.classes;

/**
 * Représente le produit qui contient un emplacement, un barcode et un nom
 * @author Guillaume
 * @version 1.0
 */
public class Product
{
	private int id;
	private String name;
	private String reference;
	private String location;
	private String category;
	private int stock;
	private Barcode barcode;
	
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public String getReference()
	{
		return reference;
	}
	public void setReference(String reference)
	{
		this.reference = reference;
	}
	public String getLocation()
	{
		return location;
	}
	public void setLocation(String location)
	{
		this.location = location;
	}
	public String getCategory()
	{
		return category;
	}
	public void setCategory(String category)
	{
		this.category = category;
	}
	public int getStock()
	{
		return stock;
	}
	public void setStock(int stock)
	{
		this.stock = stock;
	}
	public Barcode getBarcode()
	{
		return barcode;
	}
	public void setBarcode(Barcode barcode)
	{
		this.barcode = barcode;
	}
	
	/**
	 * Constructeur de product
	 * @param id Id du produit de la base de données
	 * @param name Nom du produit
	 * @param reference Référence du produit
	 * @param location Emplacement du produit
	 * @param category Catégorie du produit
	 */
	public Product(int id, String name, String reference, String location,
			String category)
	{
		this.id = id;
		this.name = name;
		this.reference = reference;
		this.location = location;
		this.category = category;
	}

	/**
	 * Constructeur de product
	 * @param id Id du produit de la base de données
	 * @param name Nom du produit
	 * @param reference Référence du produit
	 * @param location Emplacement du produit
	 * @param category Catégorie du produit
	 * @param barcode Barcode du produit
	 */
	public Product(int id, String name, String reference, String location,
			String category, Barcode barcode)
	{
		this.id = id;
		this.name = name;
		this.reference = reference;
		this.location = location;
		this.category = category;
		this.barcode = barcode;
	}
	public Product(String name, String reference, String location,
			String category, Barcode barcode)
	{
		this.name = name;
		this.reference = reference;
		this.location = location;
		this.category = category;
		this.barcode = barcode;
	}
	public Product(String name, String reference, String location, String category)
	{
		this.name = name;
		this.reference = reference;
		this.location = location;
		this.category = category;
	}
	public Product(int id, String name, String reference, String location,
			String category, int stock)
	{
		this.id = id;
		this.name = name;
		this.reference = reference;
		this.location = location;
		this.category = category;
		this.stock = stock;
	}
	
	public Product(String name, String reference, String location,
			String category, int stock)
	{
		this.name = name;
		this.reference = reference;
		this.location = location;
		this.category = category;
		this.stock = stock;
	}
}
